package com.antler.smt.portal.controller;

import com.antler.smt.request.portal.GetRequirementListReq;
import com.antler.smt.response.base.Result;
import com.antler.smt.utils.LogUtil;
import com.antler.smt.validate.DataValidator;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.springframework.web.bind.annotation.*;

/**
 * 预估价计算接口
 *
 * @author zhangyi
 * @date 2018/5/14 15:27
 */
@RestController
@RequestMapping("/futurePrices")
@Api(description = "预估价计算接口")
public class FuturePricesController {
    /**
     * 日志
     */
    private static Logger log = LogUtil.get();


    /**
     * 计算预估价格（正在写...）
     *
     *
     * @return
     */
    @PostMapping("/compute")
    @ApiOperation(value = "计算预估价格（正在写...）", httpMethod = "POST")
    public Result compute(@RequestBody GetRequirementListReq requirementListReq){

        DataValidator.isNull(requirementListReq,"发布需求计算实体不能为空！");

        Result result = null;
        //...
        return result;
    }
}
